﻿<%@ Page Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" Inherits="MediaMonitor.Admin.ChangeEmailPassword"
    Theme="default" Title="User Management - List" CodeBehind="ChangeEmailPassword.aspx.cs" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script src="../rad-scripts/rad.js" type="text/javascript"></script>
    </telerik:RadCodeBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">
    <table>
        <tr>
            <td colspan="3">
                <h1>
                    Change Application Email Password</h1>
            </td>
        </tr>
          <tr>
            <td colspan="3">
                <h1>
                    <asp:Label runat="server" ID="lblErrorMsg" Visible="false" ></asp:Label></h1>
            </td>
        </tr>
        <tr>
           <td>Email:</td>
           <td><asp:Label runat="server" ID="lblEmail" Text="mediamonitor.agb@gmail.com"></asp:Label></td>
           <td>&nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblOldPassword" Text="Current Password" AssociatedControlID="txtOldPassword"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtOldPassword" ValidationGroup="a"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorForOLdPassword" runat="server" ValidationGroup="a"
                    ErrorMessage="Please enter your old password" ControlToValidate="txtOldPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblNewPassword"  Text="New Password" AssociatedControlID="txtNewPassword"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtNewPassword" ValidationGroup="a"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="a" runat="server" ErrorMessage="Please enter your new password"
                    ControlToValidate="txtNewPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblConfirmPassword" Text="Confirm Password" AssociatedControlID="txtConfirmPassword"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtConfirmPassword" ValidationGroup="a"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="a" runat="server" ErrorMessage="Password does not match."
                    ControlToValidate="txtConfirmPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td> <asp:ImageButton ID="btnChangePassword" ValidationGroup="a" runat="server"  SkinID="submit" 
                OnClick="btnChangePassword_Click" /></td>
        <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
